<!--
Template Name: test
Create author: qinglong
Create Time  : 2021-02-05
-->
<template>
  <div>
    <canvas ref="canvas" />
  </div>
</template>
<script>
import sketchpad from './sketchpad';
export default {
  name: 'test',
  data() {
    return {};
  },
  mounted() {
    let obj = new sketchpad({
      element: this.$refs['canvas'],
      width: 500,
      height: 300,
    });
  },
};
</script>
<style lang='less' scoped>
</style>